



use serde_json::{Value, Result};
use std::collections::HashMap;
use std::error::Error;
use std::time::Duration;
use std::thread::sleep;

const DEFAULT_UPDATE_TIMEOUT: u32 = 3;                          // 3 seconds

const DEFAULT_RETRY_COUNT: u32 = 3;                             // retry 3 times

const DEFAULT_RETRY_WAIT: u32 = 3;                              // wait 3 seconds between retries

struct DataSourceMirrors {
    update_timeout: u32,
    retry_count: u32,
    retry_wait: u32,
}

impl DataSource for DataSourceMirrors {
    fn new(name: str, params: Value) {
        DataSourceMirrors {
            path: params["path"].as_str().unwrap()
        }
    }
}